import Vue from "vue";
import VueRouter from "vue-router";
import Work from "@/components/work.vue";
import River from "@/components/river.vue";
import Hexian from "@/components/hexian.vue";
import wordcloud from "@/components/wordcloud.vue";
import Poetry from "@/components/poetry.vue";
import placePaper from "@/components/placePaper.vue";
import events from "@/components/events.vue";
import Person from "@/components/person.vue";
import Tree from "@/components/tree.vue";

Vue.use(VueRouter);

const router = new VueRouter({
    routes: [
        {
            path: "/tree",
            component: Tree,
        },
        {
            path: "/poetry",
            component: Poetry,
        },
        {
            path: "/wordcloud",
            component: wordcloud,
        },
        {
            path: "/hexuan",
            component: Hexian,
        },
        {
            path: "/work",
            component: Work,
        },
        {
            path: "/person",
            component: Person,
        },
        {
            path: "/river",
            component: River,
        },
        {
            path: "/placePaper",
            component: placePaper,
        },
        {
            path: "/events",
            component: events,
        },
        {
            path: "/",
            redirect: "/poetry",
        },
    ],
});
export default router;
